{% extends 'window.twig' %}
{% block body %}
    <div class="admin-main-container">
        <form action="notification.add" method="post" class="data-view data-validate" post-type="ajax">
            <div class="with-padding">
                <div class="form-item">
                    <label class="item-label">提醒标题<span class="check-tips">(最多允许输入10个字符)</span></label>
                    <div class="controls">
                        <input type="text" class="form-control" name="notice_title" maxlength="10">
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        提醒内容<span class="check-tips"></span>
                        <label class="error" for="notice_message"></label>
                    </div>
                    <div class="controls">
                        <textarea class="form-control" name="notice_message"
                                  data-rules="required" data-message-required="提醒内容必须填写"></textarea>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        提醒时间<span class="check-tips"></span>
                        <label class="error" for="notice_time"></label>
                    </div>
                    <div class="controls">
                        <input type="text" class="form-control datetime" name="notice_time" readonly="readonly"
                               data-rules="required" data-message-required="必须设置提醒时间"
                               date-min="%y-%M-%d %H:%m:%s" date-format="yyyy-MM-dd HH:mm">
                    </div>
                </div>
            </div>

            <div class="form-item with-padding" style="margin-top: 10px;">
                <button class="btn btn-default" type="submit">确 定</button>
                <a class="btn btn-info" href="../rule.html">返 回</a>
            </div>
        </form>
    </div>
{% endblock %}